//============================================================================
// Name        : Rank.h
// Author      : lucmir@dcc.ufmg.br
// Description :
//============================================================================

#ifndef __RANK_H__
#define __RANK_H__

#include <stdio.h>
#include <string>
#include <iostream>

#include "index/Index.h"
#include "index/DocumentIndex.h"

typedef std::map<unsigned int, double> Accumulators;
typedef std::map<unsigned int, double>::iterator AccumulatorsItr;


class Rank {

	Accumulators *accumulators;

	public:

		Rank();
		~Rank();

		void updateAccumulator(unsigned int docId, double value);
		void setAccumulator(unsigned int docId, double value);

		Accumulators *getAccumulators();

};

#endif
